/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved.
 */

export class BaseCommandBuilder {
  protected commandList: string[];

  constructor(commandList: string[]) {
    this.commandList = commandList;
  }

  build(): string[] {
    return this.commandList;
  }

  addAllParams(params: string[]) {
    this.commandList = [...this.commandList, ...params];
    return this.commandList;
  }
}
